package com.cowin.sys.service.impl;

import com.cowin.inf.model.vo.MaterialTypeCountVo;
import com.cowin.sys.dao.TmBasMaterialRelationMapper;
import com.cowin.sys.model.TmBasMaterialRelation;
import com.cowin.sys.service.TmBasMaterialRelationService;
import com.cowin.base.AbstractServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by  on 2020/01/11.
 * @author CodeGenerator
 */
@Slf4j
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class TmBasMaterialRelationServiceImpl extends AbstractServiceImpl<TmBasMaterialRelation> implements TmBasMaterialRelationService {

    @Resource
    private TmBasMaterialRelationMapper tmBasMaterialRelationMapper;

    @Override
    public List<MaterialTypeCountVo> findBsPsTypeByVinOrId(List<String> materialNoList, String materialNo,String type) {
        return tmBasMaterialRelationMapper.findBsPsTypeByVinOrId(materialNoList,materialNo,type);
    }
}
